import type { RouteRecordRaw } from 'vue-router';

import Layout from '@/layouts/index.vue';
import MeterReading from '@/views/meter-reading/index.vue';

export const meterReadingRoutes: RouteRecordRaw[] = [
  {
    path: '/meter-reading',
    redirect: '/meter-reading/index',
    name: 'MeterReading',
    component: Layout,
    meta: {
      authCodes: ['FM_META_READING'],
      title: '人工抄表',
    },
    children: [
      {
        path: '/meter-reading/index',
        name: 'MeterReadingIndex',
        component: MeterReading,
        meta: {
          authCodes: ['FM_META_READING'],
          title: '人工抄表',
          keepAlive: true,
        },
      },
    ]
  }
];
